<?php 


include "../function/function.php";
include "./Site.class.php";


$runoob=new Site;
$taobao=new Site;
$google=new Site;


// // 调用成员函数，设置标题和URL 
$runoob->setTitle( "菜鸟教程" ); 
$taobao->setTitle( "淘宝" ); 
$google->setTitle( "Google 搜索" ); 

$runoob->setUrl( "www.runoob.com" ); 
$taobao->setUrl( "www.taobao.com" ); 
$google->setUrl( "www.google.com" ); 

// // 调用成员函数，获取标题和URL 
$runoob->getTitle(); 
$taobao->getTitle(); 
$google->getTitle(); 

$runoob->getUrl(); 
$taobao->getUrl(); 
$google->getUrl(); 





 ?>
